package com.le.tester.book.concurrentchallenge.aviodDanger;

import java.util.HashSet;
import java.util.Set;

/**
 * createTime：2025-04-22 9:52
 * description：
 */
public class Dispatcher {
    private final Set<Taxi> taxis;

    private final Set<Taxi> availableTaxis;

    public Dispatcher() {
        taxis = new HashSet<>();
        availableTaxis = new HashSet<>();
    }

    public synchronized void notifyAvailable(Taxi taxi) {
        availableTaxis.add(taxi);
    }

//    public synchronized Image getImage() {
//        //画出位置
//        return null;
}
